package com.snailct.bpp.router.datachange;

import com.snailct.bpp.router.datachange.service.AcceptMessage;

/**
 * Created by huangxa on 2016/6/17.
 */
public class SynDealWithMessage {
    public static boolean isSyn(String xmlStr){
        return true;
    }

    public static String synDealWithMessage(String mingXmlStr) {
        AcceptMessage accept = new AcceptMessage();
        accept.setXmlStr(mingXmlStr);
        String refId = accept.insertXMLStrSyn();
        XMLMessageOperation xmlMessageOperation = new XMLMessageOperation();
        xmlMessageOperation.setRefId(refId);
        xmlMessageOperation.sendMessage();
        return "ok";
    }
}
